<template>
  <view>
    <web-view :src="src"></web-view>
  </view>
</template>

<script setup>
import config from '@/config.js'
const { proxy } = getCurrentInstance()
const src = ref('')

onLoad(e => {
  let url = config.webBaseUrl + e.src;
  url += url.indexOf('?') > -1 ? '&' : '?'
  url += 'locale=' + proxy.$i18n.locale + '&_from=app'
  src.value = url
})
</script>

